import Vue from 'vue'
import axios from '@/utils/request'
import { XImg, Toast } from 'vux'
import '@/utils/rem'
import 'assets/css/coverCommon.css'
// import 'video.js/dist/video-js.css'
// import 'vue-video-player/src/custom-theme.css';
// import VideoPlayer from 'vue-video-player'
// Vue.use(VideoPlayer);

import index from './indexApp'

Vue.prototype.$http = axios.axios;
// Vue.prototype.$defaultImg = 'http://ww1.sinaimg.cn/large/663d3650gy1fx6hv6iiizj20nc0b40ud.jpg';
import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
Vue.use(VideoPlayer)

Vue.component('x-img', XImg)
Vue.component('toast', Toast)

import VueLazyload from 'vue-lazyload'

Vue.use(VueLazyload)

// or with options
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'http://ww1.sinaimg.cn/large/663d3650gy1fx6hv6iiizj20nc0b40ud.jpg',
  loading: 'http://ww1.sinaimg.cn/large/663d3650gy1fx6hv6iiizj20nc0b40ud.jpg',
  attempt: 1
})

new Vue({
  render: h => h(index)
}).$mount('#app')
